#!/usr/bin/env python
import sys
def main():
	sum = 0
	ll = 0
	for a in range(5):
		print "||||",
		print ll,
		print "====================="
#		print a
		ll = 0
		for b in range(5):
#			print "---------------------------------------------------"
			for c in range(5):
				
				if ( int(a) + int(b) + int(c) ) == 5:
					print str(a)+"      "+str(b)+"      "+str(c)
					ll = ll+1
					sum = sum + 1
	print "||||",
	print ll
	print "===============================\n==============================="
	print sum
	ans=0
	ans = 5*4*3*2*1*sum
	print "===============================\n==============================="
	print 'Ans is :',
	print ans
#	print "================================================================="
	ans = 0
	ans = 5*4*3*2*3*2*10
#	print 'Ans2 is :',
#	print ans
if __name__ == "__main__":
	print 'Program_Start!!!'
	main()
sys.exit()